#!/bin/bash
# 定时创建采集日志的HDFS目录
# 1 0 * * * mkdir_daily_log.sh > mkdir_daily_log.log 2>&1
source /etc/profile
day=`date -d "+1 days" "+%Y%m%d"`
# raw file
hadoop fs -mkdir -p /log/nas/${day}
# merge file
hadoop fs -mkdir -p /logs/nas/${day}
